package com.netty.esc;

import lombok.SneakyThrows;

/**
 * @Author: zhaoyang
 * @Data: 2022/5/30 18:23
 * @Description
 */
public class MyRunnable implements Runnable {
    Methods methods = new Methods();
    @SneakyThrows
    @Override
    public void run() {

        while(true){
            methods.demo();
            System.out.println("困了");
            this.wait();
            System.out.println("走了");
        }


    }
}
